﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 班级
    /// </summary>
    public class Grade : BaseModel
    {
        [Required(AllowEmptyStrings = false)]
        [StringLength(30)]
        public string GradeName { get; set; }

        public long CourseId { get; set; }

        [ForeignKey("CourseId")]
        public virtual Course Course { get; set; }

        public virtual IList<Group> Groups { get; set; }

        public virtual IList<StuClient> StuClients { get; set; } 
    }
}